﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TlvLib.PacketParsers
{
    public class LpiReplyPacker : IPacketPacker
    {
        public byte[] Pack(object packet)
        {
            var packetId = (string)packet;
            var buffer = new byte[64]; //定长为64字节
            Encoding.ASCII.GetBytes(packetId, 0, packetId.Length, buffer, 0);
            return buffer;
        }
    }
}
